import 'package:flutter/material.dart';

///云途样式
class YTTheme {
  ///
  static YTTheme instance = YTTheme();
  static Color _theme = Color(0xff00C65F);

  ///
  Color color;

  ///
  YTTheme({this.color});

  ///单例
  static YTTheme getInstance() {
    return instance;
  }

  ///
  void init() {
    if (instance.color != null) {
      _theme = instance.color;
    }
  }

  ///
  static Color get theme => _theme;
}
